# -*- coding: utf-8 -*-
"""API路由模块初始化"""

from flask import Blueprint

# 创建主API蓝图
api_bp = Blueprint('api', __name__, url_prefix='/api')

# 导入各个路由模块
from .auth import auth_bp
from .system import system_bp
from .cameras import cameras_bp
from .violations import violations_bp
from .alerts import alerts_bp
from .configs import configs_bp
from .upload import upload_bp
from .scenes import scenes_bp
# from .mock import mock_bp  # 已注释，不再使用模拟数据

# 注册子蓝图
api_bp.register_blueprint(auth_bp, url_prefix='/auth')
api_bp.register_blueprint(system_bp, url_prefix='/system')
api_bp.register_blueprint(cameras_bp, url_prefix='/cameras')
api_bp.register_blueprint(violations_bp, url_prefix='/violations')
api_bp.register_blueprint(alerts_bp, url_prefix='/alerts')
api_bp.register_blueprint(configs_bp, url_prefix='/configs')
api_bp.register_blueprint(upload_bp, url_prefix='/upload')
api_bp.register_blueprint(scenes_bp, url_prefix='/scenes')

# 导出API蓝图
__all__ = ['api_bp']